<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateServiceBankTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('service_bank', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('service_id')->index()->comment('服务站id');
            $table->string('bank')->nullable()->comment('开户行');
            $table->string('bank_name')->nullable()->comment('银行名称');
            $table->string('real_name')->nullable()->comment('开户人');
            $table->string('bank_card')->nullable()->comment('卡号');
            $table->string('phone')->nullable()->comment('手机号');
            $table->unsignedTinyInteger('status')->default(0)->comment('状态 0:禁用  1:正常');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('service_bank');
    }
}
